
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf8">
            <script language="javascript">
                function loadURL(url){
                    var iFrame;
                    iFrame = document.createElement("iframe");
                    iFrame.style.height = "1px";
                    iFrame.style.width = "1px";
                    iFrame.style.display = "none";
                    iFrame.src = url;
                    document.body.appendChild(iFrame);
                    setTimeout(function(){
                        iFrame.remove();
            	       },100);
                }
            	

            	function receiveValue(value){
            		alert("从原生拿到加法结果为："+value);
            	}
            
            function check() {
            	var par1 = document.getElementById("par1").value;
            	var par2 = document.getElementById("par2").value;
                loadURL("JSBridge://plus?par1=" + par1 +"&par2=" + par2);
            }
            </script>
            </head>
    
    <body>
        <input type="text" placeholder="请输入数字"  id="par1"／> + <input type="text" placeholder="请输入数字"  id="par2"／> 
        <input type="button" value="=" onclick="check()" />
    </body>
</html>

